//购物车动作
import { ADD_CART, EDIT_CART, INCREMENT, DECREMENT } from '../content';

//添加购物车
export const addCartAction = (data) => {
    return { type: ADD_CART, data }
}

//修改购物车的 状态
export const editCartAction = (data) => {
    return { type: EDIT_CART, data }
}
// jiajia加加
export const incrementNum = (data) => {
    return { type: INCREMENT, data }
}

export const decrementNum = (data) => {
    return { type: DECREMENT, data }
}